package org.gd.hellojaxb.privat24.regular;

import javax.xml.bind.annotation.*;

@XmlEnum
public enum RegularPayBank {

    @XmlEnumValue("PB") PRIVATE_BANK_UKRAINE ("PB", "P24 Ukraine"),
    @XmlEnumValue("MP") PRIVATE_BANK_RUSSIA ("MP", "Pt24 Russia"),
    @XmlEnumValue("TG") PRIVATE_BANK_GEORGIA ("TG", "P24 Georgia"),
    @XmlEnumValue("AB") A_BANK ("AB", "P24 A-Bank"),
    @XmlEnumValue("TT") TEST_BANK ("TT", "Test server");

    private String name;
    private String description;

    private RegularPayBank(String name, String description) {
        this.name = name;
        this.description = description;
    }

    public String getName() {
        return name;
    }

    @SuppressWarnings("unused")
    public String getDescription() {
        return description;
    }

    @Override
    public String toString() {
        return getName();
    }
}
